package com.gouqi.mall.domain.dto;

import com.gouqi.mall.domain.ValueObject;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

/**
 * @author:小费
 * @time:2020-1-30
 * @description:主页展示信息，数据库展示信息结果集
 */
public class MessageResult extends ValueObject {
    private Integer id;
    private String message;
    private String DescInfo;
    private String phone;
    private String address;
    private String ImageUrl;
    private String name;
    private String createTime;
    private String[] imageList = new String[9];


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getDescInfo() {
        return DescInfo;
    }

    public void setDescInfo(String descInfo) {
        DescInfo = descInfo;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getImageUrl() {
        return ImageUrl;
    }

    public void setImageUrl(String imageUrl) {
        ImageUrl = imageUrl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        String strTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(createTime);
        this.createTime = strTime;
    }

    public String[] getImageList() {
        return imageList;
    }

    public void setImageList(String[] imageList) {
        this.imageList = imageList;
    }

    @Override
    public String toString() {
        return "MessageResult{" +
                "id=" + id +
                ", message='" + message + '\'' +
                ", DescInfo='" + DescInfo + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", ImageUrl='" + ImageUrl + '\'' +
                ", name='" + name + '\'' +
                ", createTime='" + createTime + '\'' +
                '}';
    }
}
